// pages/d/d.js
import http from '../../common/http'
Page({

  /**
   * 页面的初始数据
   */
  data: {
    c:[],
    isShow:false
  },

  onLoad(options) {
    http({
      url: 'http://route.showapi.com/1700-3',
      method: 'GET',
      data: {
        showapi_appid: '1367085',
        showapi_sign: 'cb8507c33e4a43cfa34a954c91b91fd6',
        id:options.id
      },
    }).then(res => {
      console.log(res);
      // console.log(res.data.showapi_res_body.content);
      this.setData({
        c: res.data.showapi_res_body.content,
        isShow:true
      })
      wx.setNavigationBarTitle({
        title: res.data.showapi_res_body.title
      })
    })
  },
})